home *** CD-ROM | disk | FTP | other *** search
/ Transformers: Revenge of …he Game: Press Kit (USA) / Transformers - Revenge of the Fallen - The Game - Press Kit (USA).bin / Transformers.swf / scripts / fl / video / VideoPlayerClient.as < prev    next >
Text File  |  2009-06-19  |  1KB  |  48 lines

  1. package fl.video
  2. {
  3.    use namespace flvplayback_internal;
  4.    
  5.    public dynamic class VideoPlayerClient
  6.    {
  7.        
  8.       
  9.       protected var _owner:VideoPlayer;
  10.       
  11.       protected var gotMetadata:Boolean;
  12.       
  13.       public function VideoPlayerClient(param1:VideoPlayer)
  14.       {
  15.          super();
  16.          _owner = param1;
  17.          gotMetadata = false;
  18.       }
  19.       
  20.       public function get ready() : Boolean
  21.       {
  22.          return gotMetadata;
  23.       }
  24.       
  25.       public function get owner() : VideoPlayer
  26.       {
  27.          return _owner;
  28.       }
  29.       
  30.       public function onCuePoint(param1:Object, ... rest) : void
  31.       {
  32.          param1.name;
  33.          param1.time;
  34.          param1.type;
  35.          _owner.onCuePoint(param1);
  36.       }
  37.       
  38.       public function onMetaData(param1:Object, ... rest) : void
  39.       {
  40.          param1.duration;
  41.          param1.width;
  42.          param1.height;
  43.          _owner.onMetaData(param1);
  44.          gotMetadata = true;
  45.       }
  46.    }
  47. }
  48.